<include file="Public/header" />
<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3>栏目位置</h3>
      <ul class="tab-base">
        <li><a href="JavaScript:void(0);" class="current"><span>管理</span></a></li>
        <li><a href="{:U('Setting/nav_cat_add')}" ><span>添加</span></a></li>
      </ul>
    </div>
  </div>
  <div class="fixed-empty"></div>
  <form method="post" id="form_admin" action="{:U('')}">
    <table class="table tb-type2">
      <thead>
        <tr class="thead">
          <th>导航分类名</th>
          <th  class="align-center">导航类型</th>
          <th  class="align-center">备注</th>
          <th class="align-center">操作</th>
        </tr>
      </thead>
      <tbody>
        <volist name="list" id="vo">
        <tr class="hover">
          <td>{$vo['name']}</td>
		  <td class="yes-onoff align-center">
          <if condition="$vo['active'] eq 1">
          <a href="JavaScript:void(0);" class="tooltip enabled" ajax_control="Setting" ajax_branch='nav_cat' nc_type="inline_edit" fieldname="active" fieldid="{$vo['navcid']}" fieldvalue="1" title="设为普通菜单">	<img src="__IMG__/transparent.gif"></a>
          <else/>
          <a href="JavaScript:void(0);" class="tooltip disabled" ajax_control="Setting" ajax_branch='nav_cat' nc_type="inline_edit" fieldname="active" fieldid="{$vo['navcid']}" fieldvalue="0" title="设为主菜单"><img src="__IMG__/transparent.gif"></a>
          </if>
         </td>
          <td  class="align-center">{$vo['remark']}</td>
          <td  class="align-center">
			<a href="{:U('Setting/nav_cat_edit',array('navcid'=>$vo['navcid']))}">编辑</a>
            &nbsp;|&nbsp;
            <a href='javascript:if(confirm("您确定要删除吗？"))window.location="{:U('Setting/nav_cat_del',array('navcid'=>$vo['navcid']))}";'>删除</a>
          </td>
        </tr>
        </volist>
      </tbody>
      <tfoot>
        <tr class="tfoot">
        <td colspan="16"></td>
        </tr>
      </tfoot>      
    </table>
  </form>
</div>
<script type="text/javascript" src="__JS__/jquery.edit.js" charset="utf-8"></script> 
<include file="Public/footer" />